domains_lock. This makes the VM.start call blocking, but allows xm list to
work while it is blocked. Move the handling of start_paused out of
XendDomainInfo.start as part of this.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
if dominfo.state != DOM_STATE_HALTED:
raise XendError("Domain is already running")
- dominfo.start(is_managed = True, start_paused = start_paused)
+ dominfo.start(is_managed = True)
self._add_domain(dominfo)
finally:
self.domains_lock.release()
+ dominfo.waitForDevices()
+ if not start_paused:
+ dominfo.unpause()
def domain_delete(self, domid):
#
- def start(self, is_managed = False, start_paused = True):
+ def start(self, is_managed = False):
"""Attempts to start the VM by do the appropriate
initialisation if it not started.
"""
self._storeDomDetails()
self._registerWatches()
self.refreshShutdown()
- if not start_paused:
- self.unpause()
# save running configuration if XendDomains believe domain is
# persistent